package cn.zymall.seckillOrder.order.controller;

import cn.zymall.common.model.Order;
import cn.zymall.common.model.User;
import com.google.gson.Gson;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xuxianda
 * @Description: 抢购秒杀订单控制层
 * @date 2020/8/24 21:14
 * @Copyright
 * @return
 **/

@RestController
@RequestMapping("/order")
public class SecKillOrderController {

    /**
     * 发送获取订单
     * @param user  根据用户编号
     * @param order 根据订单编号
     * @return
     */
    @GetMapping
    public Order getOrder(User user, Order order) {
        System.out.println(user);
        System.out.println(order);
        return null;
    }


}
